package com.atguigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author chenxin
 * @date 2023/2/7
 * @Version 1.0
 */
@Controller
public class IndexController {

    @RequestMapping("/")
    public String toIndex(){
        System.out.println("去首页...");
        return "frame/index";
    }

    @RequestMapping("/main")
    public String main(){
        return "frame/main";
    }
}
